Component({
  data: {
    selected: 0,
    color: "#999999",
    selectedColor: "#F45F04",
    list: [{
      pagePath: "/pages/index/index",
      iconPath: "/static/image/icon/index.png",
      selectedIconPath: "/static/image/icon/index_hover.png",
      text: "今日",
      count: 0
    }, {
      pagePath: "/pages/menu/index",
      iconPath: "/static/image/icon/mine.png",
      selectedIconPath: "/static/image/icon/mine_hover.png",
      text: "我的",
      count: 0
    }]
  },
  attached() {
  },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      wx.switchTab({url})
      // this.setData({
      //   selected: data.index
      // })
    }
  }
})